package org.edu.modules.stu.zhsz.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.common.base.BaseEntity;

import java.sql.Date;

import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-德育计划表
 */
@TableName("ve_stu_moral_program")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "德育计划表对象", description = "ve_stu_moral_program")
public class VeStuMoralProgram extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "计划标题")
    @Length(max = 200)
    private String title;

    @TableField
    @ApiModelProperty(value = "用户名称")
    private String userNames;

    @TableField
    @ApiModelProperty(value = "内容")
    @Length(max = 65535)
    private String content;

    @TableField
    @ApiModelProperty(value = "是否发布（0：未发布，1：发布）")
    private Integer status;

    @TableField
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(timezone = "GMT+8", locale = "zh", pattern = "yyyy-MM-dd")
    private Date pushTime;

    @TableField
    @ApiModelProperty(value = "发布人")
    @Length(max = 32)
    private String pushUserId;

    @TableField
    @ApiModelProperty(value = "")
    @Length(max = 255)
    private String pushUserName;

    @TableField
    @ApiModelProperty(value = "是否所有人员（0：否，1：是）")
    private Integer isAll;


}
